import request from '@/utils/request'

// 查询部职别列表
export function listIfmDepartmentTitle(query) {
  return request({
    url: '/system/IfmDepartmentTitle/list',
    method: 'get',
    params: query
  })
}

// 查询部职别详细
export function getIfmDepartmentTitle(titleId) {
  return request({
    url: '/system/IfmDepartmentTitle/' + titleId,
    method: 'get'
  })
}

// 新增部职别
export function addIfmDepartmentTitle(data) {
  return request({
    url: '/system/IfmDepartmentTitle',
    method: 'post',
    data: data
  })
}

// 修改部职别
export function updateIfmDepartmentTitle(data) {
  return request({
    url: '/system/IfmDepartmentTitle',
    method: 'put',
    data: data
  })
}

// 删除部职别
export function delIfmDepartmentTitle(titleId) {
  return request({
    url: '/system/IfmDepartmentTitle/' + titleId,
    method: 'delete'
  })
}
